package cn.sciento.farm.devicemanager.dao.mapper;

import cn.sciento.farm.devicemanager.dao.entity.DevScene;
import cn.sciento.farm.devicemanager.dao.model.SceneForm;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 场景管理 Mapper 接口
 * </p>
 *
 * @author wumu
 * @since 2019-06-09
 */
public interface SceneMapper extends BaseMapper<DevScene> {

    List<DevScene> getByDeviceId(@Param("deviceId") String id);

    List<SceneForm> getByAreaId(@Param("areaId") int areaId);

    List<SceneForm> getByLandId(@Param("landId") int landId);
}
